package com.ruoyi.common.pms.dao;

import com.ruoyi.common.pms.entity.YytPmsBrand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 品牌表 Mapper 接口
 * </p>
 *
 * @author huangshun
 * @since 2021-12-16
 */
@Repository
public interface YytPmsBrandMapper extends BaseMapper<YytPmsBrand> {

    /**
     * 根据品牌id获取品牌名称
     */
    @Select("select `name` from yyt_pms_brand where id = #{id}")
    String getName(String id);

}
